import request from "@/router/axios";

export const getCoursePageList = (params) => {
  return request({
    url: "/admin/course/list ",
    method: "post",
    data: params,
  });
};

export const getCourseItemDetails = (row) => {
  return request({
    url: "/admin/course/detail",
    method: "post",
    data: row,
  });
};


export const updateCourseItem = (row) => {
  return request({
    url: "/admin/course/edit",
    method: "post",
    data: row,
  });
};
export const delCourseItem = (row) => {
  return request({
    url: "/admin/course/delete",
    method: "post",
    data: row,
  });
};

export const getCourseOrderPageList = (row) => {
  return request({
    url: "/admin/course/order/list",
    method: "post",
    data: row,
  });
};
export const getCourseOrderItemDetails = (row) => {
  return request({
    url: "/admin/course/order/detail",
    method: "post",
    data: row,
  });
};
